const mongoose = require('mongoose');
const db = require('./db');
const _ = require('lodash');
const baseDao = require('./baseDao');
const Schema = mongoose.Schema;

const feedbackSchema = new Schema({
	userId: { type: Schema.Types.ObjectId },
	content: { type: String },
	createdTime: { type: String },
},
{
	collection : 'feedback'
});

const Feedback = db.model('Feedback', feedbackSchema);

const feedbackDao = Object.assign({

	model: Feedback,

}, baseDao);

module.exports = feedbackDao;